import axios from '@/libs/api.request'
// 销售基础数据管理
export class SalesCustomerConfigApi {
  // 列表
  static GetList (params) {
    return axios.request({
      url: '/SalesCustomerConfig/GetList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取单个
  static GetModel (id) {
    return axios.request({
      url: '/SalesCustomerConfig/GetModel?id=' + id,
      method: 'get',
      enctype: 'multipart/form-data',
    })
  }

  // 保存
  static Save (params) {
    return axios.request({
      url: '/SalesCustomerConfig/Save',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导入
  static Import (params) {
    return axios.request({
      url: '/SalesCustomerConfig/Import',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出
  static Export (params) {
    return axios.request({
      url: '/SalesCustomerConfig/Export',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 姓名下拉列表数据源
  static GetSelectList (params) {
    return axios.request({
      // url: '/User/GetVisibleList',
      url: '/User/GetFullList?powerType=3',
      method: 'get',
      params: params
    })
  }
}
